package session09.compent;

import javax.swing.*;
import java.awt.*;

public class FontPanel extends JLabel {
    public FontPanel(int x, int y,int size,int width,int height) {
        this.setFont(new Font("宋体", Font.PLAIN, size));
        this.setForeground(Color.BLUE);
        this.setBounds(x, y, width, height);
    }
}
